﻿<%@ Page Title="" Language="C#" MasterPageFile="~/main.master" AutoEventWireup="true" CodeFile="main1.aspx.cs" Inherits="main1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>书</title>
    <style type="text/css">
        .style1
        {
            color: #FF9933;
        }
        .style2
        {
            color: #c0c0c0;
            font-size:
        }
        
        .style4
    {
        color: #666;
    }
        
        .style5
        {
            width: 100%;
        }
        
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="margin-left:254px;height:602px;width:916px;border:0.5px dashed #666;border-bottom-width:0.5px;">
        <h4 style="margin-left:3px;margin-top:10px;width:910px;background-color:#666;" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;<span 
                class="style2">精品推荐</span><a style="margin-left:770px;font-size:12px;" 
                href="main3.aspx?id=2&&var=99" class="style4">更多>></a></h4>
        <table style="margin-left:30px;margin-top:5px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
            <tr>
                <td align="center">

                    <asp:GridView ID="GridView2" runat="server" Width="745px" RepeatColumns="4" 
                        AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <table class="style5">
                                <tr>
                                    <td rowspan="4">
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# bind("BookUrl") %>' />
                                    </td>
                                    <td colspan="2">
                                        <asp:Label ID="Label2" runat="server" Text='<%# bind("BookID") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        书名：</td>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text='<%# bind("BookName") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热卖价：</td>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" Text='<%# bind("HotPrice") %>'></asp:Label>
                                        ￥</td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:HyperLink ID="HyperLink5" runat="server" ImageUrl="images/购买.jpg">加入购物车</asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            
                        </EmptyDataTemplate>

                    </asp:GridView>
                </td>
            </tr>
        </table>
        <h4 style="margin-left:3px;margin-top:45px;width:910px;background-color:#666;" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;<span 
                class="style2">特价商品</span><a style="margin-left:770px;font-size:12px;" 
                href="main3.aspx?id=3&&var=99" class="style4">更多>></a></h4>
        <table style="margin-left:30px;margin-top:5px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
            <tr>
                <td align="center">
                 <asp:GridView ID="GridView1" runat="server" Width="745px" RepeatColumns="4" 
                        AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <table class="style5">
                                <tr>
                                    <td rowspan="4">
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# bind("BookUrl") %>' />
                                    </td>
                                    <td colspan="2">
                                        <asp:Label ID="Label2" runat="server" Text='<%# bind("BookID") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        书名：</td>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text='<%# bind("BookName") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热卖价：</td>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" Text='<%# bind("HotPrice") %>'></asp:Label>
                                        ￥</td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:HyperLink ID="HyperLink6" runat="server" ImageUrl="images/购买.jpg">加入购物车</asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            
                        </EmptyDataTemplate>

                    </asp:GridView>   
                 </td>
            </tr>
        </table>
        <h4 style="margin-left:3px;margin-top:45px;width:910px;background-color:#666;" class="style1">&nbsp;&nbsp;&nbsp;&nbsp;<span 
                class="style2">热销商品</span><a style="margin-left:770px;font-size:12px;" 
                href="main3.aspx?id=4&&var=99" class="style4">更多>></a></h4>
        <table style="margin-left:30px;margin-top:5px;border-color:#ff9933; width:856px;height:120px;font-size: 9pt; font-family: 宋体;">
            <tr>
                <td align="center">
                    <asp:GridView ID="GridView3" runat="server" Width="745px" RepeatColumns="4" 
                        AutoGenerateColumns="False">
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <table class="style5">
                                <tr>
                                    <td rowspan="4">
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# bind("BookUrl") %>' />
                                    </td>
                                    <td colspan="2">
                                        <asp:Label ID="Label2" runat="server" Text='<%# bind("BookID") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        书名：</td>
                                    <td>
                                        <asp:Label ID="Label3" runat="server" Text='<%# bind("BookName") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        热卖价：</td>
                                    <td>
                                        <asp:Label ID="Label4" runat="server" Text='<%# bind("HotPrice") %>'></asp:Label>
                                        ￥</td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <asp:HyperLink ID="HyperLink7" runat="server" ImageUrl="images/购买.jpg">加入购物车</asp:HyperLink>
                                    </td>
                                </tr>
                            </table>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EmptyDataTemplate>
                            
                        </EmptyDataTemplate>

                    </asp:GridView>   
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

